class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.integer :ticket_id
      t.integer :activity_id
      t.integer :user_id

      t.integer :state #completed=0, current=1, pending=2
      t.datetime :view_time

      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end
